// stores/tabParams.js
import { defineStore } from 'pinia'

export const useTabParamsStore = defineStore('tabParams', {
  state: () => ({
    params: null // 存储参数
  }),
  actions: {
    setParams(data) {
      this.params = data
    },
    clearParams() {
      this.params = null
    }
  }
})